
package shared;

import java.util.LinkedList;

import birdsVSZombiesClient.gameGraphic.BVZGameShape;
import birdsVSZombiesClient.gameGraphic.BVZGameShapeBoundaries;
import birdsVSZombiesClient.gameGraphic.BVZGameShapeBoxes;
import birdsVSZombiesClient.gameGraphic.BVZGameShapeCircles;

import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryonet.EndPoint;

// This class is a convenient place to keep things common to both the client and server.
public class Network {
	static public final int TCPport = 54555;
	static public final int UDPport = 54777;
	
	
	// This registers objects that are going to be sent over the network.
	static public void register (EndPoint endPoint) {
		Kryo kryo = endPoint.getKryo();
		kryo.register(BVZServerToClientsMessages.class);
		kryo.register(BVZClientToServerMessages.class);
		kryo.register(LinkedList.class);
		kryo.register(BVZGameShape.class);
		kryo.register(BVZGameShapeBoundaries.class);
		kryo.register(BVZGameShapeBoxes.class);
		kryo.register(BVZGameShapeCircles.class);
	}

}
